package com.bit.ioc.controller;

import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;

//进行properties相关的配置文件的使用；
//@Controller
//public class PropertiesController {
//    @Value("${my.key1}")
//    private Integer key1;
//    @Value("${my.key2}")
//    private boolean key2;
//    @PostConstruct//初始化注解的使用；
//    public void init(){
//        System.out.println("mykey1: "+key1);
//        System.out.println("mykey2: "+key2);
//    }
//}
